import {makeAutoObservable} from 'mobx';
import {createContext, useContext} from 'react';

class OtherStore {
  constructor() {
    makeAutoObservable(this);
    this.changeFoucs = this.changeFoucs.bind(this);
  }

  // 当前内容是否关注
  foucs: boolean = false;

  changeFoucs(b: boolean) {
    this.foucs = b;
  }
}

const otherContent = createContext(new OtherStore());

export const useOtherStore = () => useContext(otherContent);
